package org.airline.dao;

import java.util.List;

import org.airline.entity.FlightArrange;
import org.airline.entity.PageBean;


public interface IFlightArrangeDao {
	
	//插入航班安排信息
	public void FlightArrangInfoSave(FlightArrange flightArrange) throws Exception;
	//获取航班安排对象
	public List<FlightArrange> getAllFlightArrange() throws Exception;
	//通过ID，获取航班安排信息
	public FlightArrange getFlightArrangeById(int id) throws Exception;
	//更新航班安排信息
	public void updateFlightArrangeInfo(FlightArrange fliArrange) throws Exception;
	//通过ID，删除航班安排信息
	public void deleteFlightArrangeInfoById(int id) throws Exception;
	// 分页查询
	public PageBean queryForPage(int pageSize, int page) throws Exception;

	// 根据安排时间查询前几条记录
	public List<FlightArrange> getFlightArrangeByDate() throws Exception;
	
	// 根据地点查询航班安排信息
	public PageBean querySearchForSingle(int pageSize, int page, FlightArrange flightArrange) throws Exception;
	
	// 根据关键字分页查询
	public PageBean queryForPageByKeyWords(String keyWord, int pageSize,
			int page) throws Exception;
}
